import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { PdfHandleComponent } from './pdf-handle/pdf-handle.component';

const routes: Routes = [
  {
    path: '',
    redirectTo: 'shp',
    pathMatch: 'full',
  },
  {
    path: 'pdf',
    loadChildren: () =>
      import('./pdf-handle/pdf-handle.module').then((r) => r.PDFHandleModule),
  },
  {
    path: 'shp',
    loadChildren: () =>
      import('./shp-handle/shp-handle.module').then((r) => r.ShpHandleModule),
  },
];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule],
})
export class AppRoutingModule {}
